/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ceair.flight.refund.service.notification.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 *
 * @author youguilin
 */
@Service
public class RefundFeeNotification extends BaseNotification {

    private static final Logger LOG = LoggerFactory.getLogger(RefundFeeNotification.class);
    @Value("${fee.calculation.exception.mail.subject}")
    private String defaultSubject;
    @Value("${fee.calculation.exception.mails}")
    private String emails;

    @Override
    public void notify(Map args) {
        super.notifyWithEmail(args);
    }

    @Override
    public String getSubject() {
        return defaultSubject;
    }

    @Override
    public String getEmailReceiver() {
        return emails;
    }

    @Override
    String getSmsReceiver() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
